<div id="contact_warehouse">
<?php if(count($models)>0): foreach($models as $model): ?>
<table class="ui-widget-content ui-corner-all" style="width:100%;">
        <tr>
            <th class="label ui-widget-header">
                <?php echo CHtml::encode($model->getAttributeLabel('pic')) ?>
            </th>
            <td>
                <?php echo CHtml::encode($model->pic); ?>
            </td>
        </tr>
        <tr>
            <th class="label ui-widget-header">
                <?php echo CHtml::encode($model->getAttributeLabel('contact')) ?>
            </th>
            <td>
                <?php echo CHtml::encode($model->contact); ?>
            </td>
        </tr>
        <tr>
            <th class="label ui-widget-header">
                <?php echo CHtml::encode($model->getAttributeLabel('cname')) ?>
            </th>
            <td>
                <?php echo CHtml::encode($model->cname); ?>
            </td>
        </tr>
        <tr>
            <th class="label ui-widget-header">
                <?php echo CHtml::encode($model->getAttributeLabel('postal')) ?>
            </th>
            <td>
                <?php echo CHtml::encode($model->postal); ?>
            </td>
        </tr>
        <tr>
            <th class="label ui-widget-header">
                <?php echo CHtml::encode($model->getAttributeLabel('address')) ?>
            </th>
            <td>
                <?php echo CHtml::encode($model->address); ?>
            </td>
        </tr>
</table>
    <br />
    <?php endforeach; else: ?>
    <h4>No warehouse is being registered. / Warehouse is same as company address.</h4>
    <?php endif;?>
</div>